<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
</head>
<body>
	
	<table class="table">
	<html:form action="/control/plat/platEdit.do?id=${data.id}" method="post">
						<tr class="table_header"><td>版块</td><td>内容</td></tr>
						<tr class= "row1">
							<td>版块名</td>
							<td><html:text property="name" value="${data.name }"></html:text></td>
						</tr>
						<tr class= "row1">
							<td>版块简介</td>
							<td><html:text property="note" value="${data.note }"></html:text></td>
						</tr>
						<tr class= "row1">
							<td>所属类别</td>
							<td>
							<select name="typeid">
								<c:forEach items="${datas}" var="d">
									<option value="${d.id}" <c:if test="${d.id == data.platType.id}">selected="selected"</c:if>>${d.name}</option>
								</c:forEach>
							</select>
							
							</td>
						</tr>
						<tr class= "row1">
							<td>优先级</td>
							<td><html:text property="level" value="${data.level }"></html:text></td>
						</tr>
						<tr class= "row1">
							<td>是否可见</td>
							<td>
							<c:if test="${data.visible==true}">
								<input type="radio" name="visible" value="false"/>隐藏
								<input type="radio" name="visible" value="true" checked="checked"/>可见
							</c:if>
							<c:if test="${data.visible==false}">
								<input type="radio" name="visible" value="false" checked="checked"/>隐藏
								<input type="radio" name="visible" value="true" />可见
							</c:if>
							<!--  
							<html:radio property="visible" value="false" >隐藏</html:radio>
							<html:radio property="visible" value="true">可见</html:radio>
							-->
							</td>
						</tr>
			<tr>
			<td><html:submit value="确定"></html:submit></td><td><html:reset value="重置"></html:reset></td>
			</tr>
	</html:form>					
	</table>

</body>
</html>